package com.tengju.bff.interfaces.covercharge.constant;
/**
 * @Author: cj
 * @Description: 服务费账户欠费记录状态
 * @Date: 2020/12/20 13:12
 */
public enum ArrearDetailStatusEnum {
    /**
     * 未处理
     */
    NOT_DEAL(0, "未处理"),

    /**
     * 已处理
     */
    DEAL(1, "已处理");

    private Integer status;

    private String msg;

    ArrearDetailStatusEnum(int status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public Integer getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }

    public static ArrearDetailStatusEnum getStatusDesc (Integer status){
        for(ArrearDetailStatusEnum statusEnum : (ArrearDetailStatusEnum.values())){
            if(statusEnum.getStatus().equals(status)){//如果传入的code与此枚举code相同，则返回此枚举
                return statusEnum;
            }
        }
        return null;
    }
}
